package com.cn.ryc.mapper;

import com.cn.ryc.model.DangerRecord;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface DangerRecordMapper {

    @Insert("INSERT INTO danger_records (detection_id, video_url, detection_time, time, class, confidence, x, y, width, height) " +
            "VALUES (#{detectionId}, #{videoUrl}, #{detectionTime}, #{time}, #{detectionClass}, #{confidence}, #{x}, #{y}, #{width}, #{height})")
    void insertDangerRecord(DangerRecord dangerRecord);
} 